package com.woniu.woniu_bx.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.woniu.woniu_bx.pojo.Order;
import com.woniu.woniu_bx.pojo.PageBean;
import com.woniu.woniu_bx.vo.OrderVo;

import java.util.List;

/**
 * @ClassName OrderService
 * @Description 订单 Service接口
 * @Author 魏才林
 * @Date 2022/8/27 16:29
 * @Version 1.0
 **/
public interface OrderService extends IService<Order> {

    void add(Order order);

    void delete(Integer orderId);

    List<Order> getWaitSureOrder();


    List<Order> getWaitFinishOrder();

    PageBean<Order> getByPage(OrderVo orderVo, Integer pageSize);

    List<Order> getAll();

    List<Order> getOrderNumberGroupByCategoryId();

    Order getOrderById(int id);

    Order getOrderDetailById(int id);

    List<Order> getByPwUserId(Integer userId);

    List<Order> getByUserId(int userId);

    void delete(int id);

    void confirm(int id);

    void served(int id);

    void accept(int id);

    void refuse(int id);

    PageBean<Order> getOrdersByPwIdAndStatus(OrderVo orderVo, Integer pageSize);

    PageBean<Order> getOrdersByUserIdAndStatus(OrderVo orderVo, Integer pageSize);
}

